package com.mbyte.easy.admin.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.mbyte.easy.admin.entity.Ppt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * ppt表 Mapper 接口
 * </p>
 *
 * @author lp
 * @since 2019-12-12
 */
public interface PptMapper extends BaseMapper<Ppt> {
/**
 *@author 孙祺至
 *@date 2019/12/21 19:52
 */
    List<Ppt> selectByGroupId(String groupId);

    Ppt selectByDraftId(Long id);

    Ppt selectIdByDraftId(Long id);

    boolean updateStatusByDraftId(Ppt ppt);


    List<Ppt> listPage(@Param("page")IPage<Ppt> page, @Param(Constants.WRAPPER) QueryWrapper<Ppt> queryWrapper);

    IPage<Ppt> listPagessss(@Param("page")IPage<Ppt> page, @Param(Constants.WRAPPER) QueryWrapper<Ppt> queryWrapper);


}
